import requests

url = 'http://47.106.14.39/'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
}

try:
    response = requests.get(url, headers=headers)
    response.raise_for_status()  # 检查请求是否成功
    
    # 手动设置编码（常见中文编码尝试）
    response.encoding = response.apparent_encoding  # 自动检测编码
    # 或者手动指定编码
    # response.encoding = 'utf-8'
    # response.encoding = 'gbk'
    # response.encoding = 'gb2312'
    
    html_content = response.text
    print(html_content)
except requests.exceptions.RequestException as e:
    print(f"请求出错: {e}")
    